/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mockrunner.mock.jdbc;

/**
 *
 * @author Administrator
 */
public class ParameterName implements ParameterReference{
    private final String name;

    public ParameterName(String name) {
        this.name = name;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 61 * hash + (this.name != null ? this.name.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ParameterName other = (ParameterName) obj;
        return (this.name == null) ? other.name == null : this.name.equals(other.name);
    }

    @Override
    public String toString() {
        return "ParameterName{" + "name=" + name + '}';
    }    
    
}
